﻿//     Copyright (c) Microsoft Corporation.  All rights reserved.

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace Gateway.Console.Models
{
    public class SecurityModel
    {
        [Key]
        public int Id { get; set; }

        [Display(Name = "Enable Authentication")]
        public bool? EnableAuthentication { get; set; }
        [NotMapped]
        public bool EnableAuthenticationValue 
        {
            get { return this.EnableAuthentication.HasValue ? this.EnableAuthentication.Value : false; }
            set { this.EnableAuthentication = value; }
        }

        [Display(Name = "Enable Multi-Tenant Access")]
        public bool? MultiTenantAuthentication { get; set; }
        [NotMapped]
        public bool MultiTenantAuthenticationValue
        {
            get { return this.MultiTenantAuthentication.HasValue ? this.MultiTenantAuthentication.Value : false; }
            set { this.MultiTenantAuthentication = value; }
        }

        public string Directory { get; set; }

        [Display(Name = "App ID URI")]
        public string ApplicationName { get; set; }
    }
}